package com.noreply.springbootdemo.bean;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author
 * @description
 * @datetime 2021/8/5 20:45
 */
@Configuration
public class MyBean {

    @Bean
    public String aString(int value) {
        System.out.println("autowire aString " + value e);
        return "hello";
    }

    @Bean
    public int anInt() {
        return 10;
    }

}
